<template>
	<u-popup v-model="mine" mode="center" @close='close'>
		<view class="manager u-skeleton">
			<view class="title">开始挖矿</view>
			<view class="select-box">
				<view class="left">
					<text v-if="true">请选择闪卡</text>
				</view>
				<u-icon name="arrow-right" size="28"></u-icon>
			</view>
			<view class="input-txt">
				<input type="text" placeholder="请输入挖矿的数量">
			</view>
			<view class="btn" @click="btn">开始挖矿</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		props: {
			mineShow: {
				type: [String, Boolean],
				default: false
			},
		},
		data(){
			return {
				//控制弹窗
				mine:true,
				// 列表下面文字状态
				status:'loadmore',
			}
		},
		mounted() {
		},
		watch: {
			mineShow: {
				handler(newval, oldVal) {
					this.mine = this.mineShow;
				},
				immediate: true
			}
		},
		methods:{
			//弹窗关闭
			close(){
				this.$emit('mineclose')
			},
			//确认挖矿
			btn(){
				console.log("确认挖矿")
			}
		}
	}
</script>

<style lang="scss" scoped>
	.manager{
		width: 80vw;
		background: #fff;
		border-radius: 10rpx;
		padding: 30rpx;
		.title{
			font-size: 34rpx;
			font-weight: bold;
			text-align: center;
			margin-bottom: 40rpx;
		}
		.select-box{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 40rpx;
			.left{
				font-size: 26rpx;
				
			}
		}
		.input-txt{
			display: flex;
			align-items: center;
			border-radius: 4rpx;
			height: 80rpx;
			padding: 10rpx 20rpx;
			border: 1rpx solid rgba(0,0,0,.05);
			margin-bottom: 40rpx;
			input{
				width: 100%;
				height: 100%;
				font-size: 26rpx;
			}
		}
		.btn{
			width: 80%;
			margin: 0 auto;
			height: 60rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			font-size: 26rpx;
			background: #303133;
			border-radius: 6rpx;
		}
	}
</style>